<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.bkav.portal.portlet.product.service.ProductCategoryLocalServiceUtil"%>
<%@page import="com.bkav.portal.portlet.product.model.ProductCategory"%>
<%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="java.util.List"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<%@include file="/html/product/init.jsp"%>


<%
	//Danh sach cac chuyen muc lien ket lay theo group
	List<ProductCategory> productCategoryList = ProductCategoryLocalServiceUtil.findAll();

%>

	<liferay-portlet:actionURL portletConfiguration="true" var="productConfigURL">	
		<liferay-portlet:param  name="portletResource" value="<%=portletResource%>"/>
	</liferay-portlet:actionURL>

	<aui:form name="product_config_form" method="post" action="<%=productConfigURL %>">
	
		<div class="product-config-container">
		
			<aui:select name="displayStyle" >
				<aui:option label="Mặc định" value="defaultDisplayStyle" selected='<%=Validator.equals(displayStyle, "defaultDisplayStyle") %>'/>
			    <aui:option label="Hiển thị sản phẩm" value="multiTabsDisplayStyle" selected='<%=Validator.equals(displayStyle, multiTabsDisplayStyle) %>'/>
				<aui:option label="Hiển thị chuyên mục" value="listTitleDisplayStyle" selected='<%=Validator.equals(displayStyle, listTitleDisplayStyle) %>'/>
			</aui:select>
		</div>
		
		<div class="aui-button-holder">
			<aui:button type="submit" value="save"/>
		</div>
	</aui:form>

<aui:script>
	Liferay.Util.toggleSelectBox('_86_displayStyle','defaultDisplayStyle','default_style_settings');
	
	Liferay.Util.toggleSelectBox('_86_displayStyle','multiTabsDisplayStyle','multi_tabs_style_settings');
	
	Liferay.Util.toggleSelectBox('_86_displayStyle','listTitleDisplayStyle','list_title_style_settings');
</aui:script>